#!/bin/bash

if [[ $2 == 1  ]]; then
	echo $"preload = ~/.wallpaper/$1.jpg" > ~/.config/hypr/hyprpaper.conf
	echo $"wallpaper = eDP-1,~/.wallpaper/$1.jpg" >> ~/.config/hypr/hyprpaper.conf
else
	echo $"preload = ~/.wallpaper/$1.png" > ~/.config/hypr/hyprpaper.conf
	echo $"wallpaper = eDP-1,~/.wallpaper/$1.png" >> ~/.config/hypr/hyprpaper.conf
fi



killall hyprpaper
hyprpaper & 
exit 1
